#ifndef CHATWIN_H
#define CHATWIN_H

#include <QMainWindow>
#include <QListWidgetItem>
#include "widget.h"
QT_BEGIN_NAMESPACE
namespace Ui { class chatwin; }
QT_END_NAMESPACE

class chatwin : public QMainWindow
{
    Q_OBJECT

public:
    chatwin(QWidget *parent = nullptr);
    ~chatwin();

private slots:
    void on_listWidget_itemDoubleClicked(QListWidgetItem *item);

private:
    Ui::chatwin *ui;
    widget *w; //聊天窗口
    int flag;
};
#endif // CHATWIN_H
